package org.example.LearnMybatis;

import org.apache.ibatis.annotations.Select;
import org.example.entity.Person;

import java.util.List;

public interface TestUser {
    @Select("select * from t_person where id = #{id} and name=#{name}")
    List<Person> selectUser(Integer id,String name);

    @Select("select * from t_person where id=#{id}")
    List<Person> selectUserById(Integer id);
}
